package com.pwt.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.pwt.entity.base.BaseEntity;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;

import lombok.EqualsAndHashCode;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;


/**
 * 检测特征
 *
 * @author auto generated
 * @date 2021-08-31 12:03:28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "[product_feature]")
@Schema(name = "检测特征")
@DynamicInsert
@DynamicUpdate
public class ProductFeature extends BaseEntity {

	/**
	 * 特征名称
	 * nullable : false
	 * default  : null
	 */
	@Schema(name = "name",description = "特征名称")
	@Column(name = "name", nullable = true, length = 64)
	@NotBlank(message = "特征名称不能为空！")
	private String name;

	/**
	 * 类型
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "type",description = "类型")
	@Column(name = "type", nullable = true, length = 64)
	private String type;

	/**
	 * 单位
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "unit",description = "单位")
	@Column(name = "unit", nullable = true, length = 64)
	private String unit;

	/**
	 * 标志
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "icon",description = "标志")
	@Column(name = "icon", nullable = true, length = 128)
	private String icon;
}
